package kr.hkit.powerjava.chapter12;

public class TestInterfaceMain {
	public static void main(String[] args) {
		TV tv = new TV();
		Car car = new Car();
		
		RemoteControl [] rc = new RemoteControl[2];
		
		rc[0] = tv;
		rc[1] = car;
		
		for(RemoteControl r: rc) {
			r.turnOn();
			r.turnOff();
		}
	}

}
